import React from 'react';
import { history } from 'umi';
import {Button} from 'antd';

import styles from './error404.less';

export default function Page() {

  const goBack = () => {
    history.back();
  };
  const goHome = () => {
    history.push('/');
  };
  return (
    <div>
      <h1 className={styles.title}>Page error404</h1>
      
      <Button onClick={goBack}>返回上一个页面</Button>
      <Button onClick={goHome}>返回主页面</Button>
    </div>
  );
}
